//
//  MinecollectionCell.m
//  qiyunapp
//
//  Created by qiyun on 2018/7/11.
//  Copyright © 2018年 qiyun. All rights reserved.
//

#import "MinecollectionCell.h"
@interface MinecollectionCell()

@end
@implementation MinecollectionCell
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self makeUI];
    }
    return self;
}
- (void)makeUI{
    _icon=[[UIImageView alloc]init];
    _icon.image=IMAGE(@"findicon1");
    [self.contentView addSubview:_icon];
    
    _title=[[UILabel alloc]init];
    _title.text=@"开户墙";
    _title.font=[UIFont fontWithName:@"PingFangTC-Medium" size:12];
    [self.contentView addSubview:_title];
    
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _icon.frame=CGRectMake((self.frame.size.width-AfW(30))/2, AfW(13), AfW(30), AfW(30));
    
    _title.frame=CGRectMake((self.frame.size.width-AfW(30))/2, CGRectGetMaxY(_icon.frame)+AfW(14), AfW(50), AfW(15));
}
@end
